#!/bin/sh

if [ -e $1 ]
then
    T=`mktemp --tmpdir=./`
    echo #include \"AbacusSim.h\" > $T
    cat $1 >> $T
    g++ -x c++ $T AbacusSim.cpp -o $1.out
    rm $T
else
    echo File $T not found.
    exit 1
fi

